@layout("/common/_form.html",{js:["/assets/project/projectMemberWork_add.js"]}){

<form class="layui-form" id="projectMemberWorkForm" lay-filter="projectMemberWorkForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>
                    <input name="projectId" type="hidden" value="${projectId}"/>
<!--                    <div class="layui-inline layui-col-md12">-->
<!--                        <label class="layui-form-label">项目ID<span style="color: red;">*</span></label>-->
<!--                        <div class="layui-input-block">-->
<!--                            <input id="projectId" name="projectId" placeholder="请输入项目ID" type="text" class="layui-input" lay-verify="required" required/>-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">记录日期<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="workDate" value="${current}" name="workDate" placeholder="请输入记录日期" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">项目组成员<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            @for(user in users) {
                                <input type="checkbox" name="userIds[]" value="${user.userId}" title="${user.name}">
                            @}
<!--                            <input id="userId" name="userId" placeholder="请输入用户ID" type="text" class="layui-input" lay-verify="required" required/>-->
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">工作时长<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="workHour" name="workHour" placeholder="请输入工作时长" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}